<template>
  <div class="h5-wrapper">
    <div class="content">
      <!-- 内容部分 -->
    </div>

    <el-container>
      <el-main class="aaa">
        <router-view></router-view>
      </el-main>
      <el-footer >
        <div class="tabbar">
          <router-link to="/article">面经</router-link>
          <router-link to="/collect">收藏</router-link>
          <router-link to="/like">喜欢</router-link>
          <router-link to="/user">我的</router-link>
        </div>
      </el-footer>
    </el-container>
  </div>
</template>

<script>
export default {
  //组件名，如果没有配置name,才会找文件名作为组件名
  name: "LayoutPage",
};
</script>

<style>
body {
  margin: 0;
  padding: 0;
}
</style>
<style lang="less" scoped>

.h5-wrapper {
  .content {
    margin-bottom: 51px;
  }
  .el-main{
  min-height:70vh ;
}
  .tabbar {
    // position: fixed;
    // left: 0;
    // bottom: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    display: flex;
    background: #fff;
    border-top: 1px solid #e4e4e4;
    a {
      flex: 1;
      text-decoration: none;
      font-size: 14px;
      color: #333;
      -webkit-tap-highlight-color: transparent;
    }
    a.router-link-active {
      color: orange;
    }
  }
}
</style>
